package ref;

import lombok.Data;

/**
 * Author:ZouHeng
 * Description:
 * Date:2021-07-05  16:14
 **/
@Data
public class Person {

    private String name;

    public Person(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    private Integer age;

    public Person() {
    }

    public static int compareByAge(Person a, Person b) {
        return a.age.compareTo(b.age);
    }
}
